parse [object XrayWrapper [object HTMLLIElement]] into HTML object

Posted by kitokid on Stack Overflow See other posts from Stack Overflow or by kitokid
Published on 2012-07-11T03:07:18Z Indexed on 2012/07/11 3:15 UTC
Read the original article Hit count: 289

Filed under:
|

when I access and GM_log the currentLi of li object, it is complaining undefined.

So when I GM_log li value as a string , instead of HTML object, I am getting [object XrayWrapper [object HTMLLIElement]].

How can I convert it or how I can access its related elements and value ?

$("#result-set li").each(function(index) {
var $currentLi = $(this);
var $class1link = $currentLi.find("class1");
var $class1href = $class1link.attr("href");
}

© Stack Overflow or respective owner

Related posts about html

Related posts about greasemonkey